home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
PROGRAMM
/
CC_C
/
H001C.ZIP
/
DJGPP3.ZIP
/
EMU387
/
E44.CC
< prev
next >
Wrap
C/C++ Source or Header
|
1991-04-22
|
424b
|
28 lines
#include "emu.h"
#include "rmov.h"
void emu_44()
{
if (empty())
return;
if (modrm > 0277)
{
// fsub st(i),st
int i = modrm & 7;
if (empty(i))
return;
reg tmp;
r_sub(st(), st(i), tmp);
r_mov(tmp, st(i));
return;
}
else
{
// fsub m64real
reg t1, t2;
r_mov((double *)get_modrm(), t1);
r_sub(st(), t1, t2);
r_mov(t2, st());
}
}